# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pika
_pkgname=pika
pkgver=1.1.0
pkgrel=1
pkgdesc="Python3 AMQP client library"
options="!check" # failures=1
url="https://pika.readthedocs.org"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-tornado py3-twisted"
makedepends="py3-setuptools"
checkdepends="
	py3-coverage
	py3-codecov
	py3-mock
	py3-nose
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/pika/pika/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-pika" # Backwards compatibility
provides="py-pika=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="35d001f9e16ed3d2a68e2328596a158e1f6a145dcedf6502e9cd17158baa80dcef53e4c1e95b90e2e24b0c132a0a8c3dd19deb293ba1884980016439c1b2495c  py3-pika-1.1.0.tar.gz"
